import express, { Router, Request, Response } from 'express'
import axios from 'axios';
const router: Router = express.Router();

router.get('/list', async (req: Request, res: Response) => {
     const result = await axios.get('https://api.inews.qq.com/newsqa/v1/query/inner/publish/modules/list?modules=statisGradeCityDetail,diseaseh5Shelf')
    //  console.log(result.data.data);
    const {data} = result
    res.send({
        ...data.data
    })

})

export default router